<?php

/*
*	Arguments: category id
*	Operation: Returns all the information of a specific category
*	Return: An object of type Category
*	Author: Panos
*/

function BL_getCategory($categoryID)
{
    $category = DB_getCategory($categoryID);

    $attributes = array();
    DB_category_getattributes($category, $attributes);
    $category->SetAttributes($attributes);

    if (is_object($category))
        return $category;
    else
        BL_registerError(BL_GET_CATEGORY);
}
?>